home *** CD-ROM | disk | FTP | other *** search
- Path: fs7.ece.cmu.edu!takahasi
- From: takahasi@poisson.ece.cmu.edu (Eduardo S. C. Takahashi)
- Newsgroups: comp.lang.c
- Subject: Speed of random generators
- Date: 01 Mar 1996 16:38:16 GMT
- Organization: Electrical and Computer Engineering
- Distribution: world
- Message-ID: <TAKAHASI.96Mar1113825@poisson.ece.cmu.edu>
- NNTP-Posting-Host: poisson.ece.cmu.edu
-
-
- I'm working in a simulation that requires intensive use of pseudo-random
- sequences. My problem is that profiling the program I found out that the
- generation of the sequences is responsible for about 50% of the total
- execution time. Since each run can take about 4 hours, it would be good
- if I could save some time.
-
- Presently, I'm using the function erand48(), and I'm also making some
- tests with ramdom(). If anyone has a suggestion I would really appreciate!
-